package com.xdap.pg.exam.entity;

import com.definesys.mpaas.query.annotation.Column;
import com.definesys.mpaas.query.annotation.ColumnType;
import com.definesys.mpaas.query.annotation.Style;
import com.definesys.mpaas.query.annotation.Table;

import java.util.Objects;

@Table("item_bank")
@Style(Upper2Underline = true)
public class ItemBank extends AbstractBasePojo implements java.io.Serializable {

    @Column(type = ColumnType.JAVA)
    private static final long serialVersionUID = 1165036020285679754L;

    /**
     * Code
     */
    @Column("Code")
    private String code;

    /**
     * No.
     */
    @Column("no")
    private String no;

    /**
     * Type
     */
    @Column("item_type")
    private String itemType;

    /**
     * Frequency
     */
    @Column("item_frequency")
    private String itemFrequency;

    /**
     * Site_name
     */
    @Column("item_Site")
    private String itemSite;

    /**
     * Group
     */
    @Column("item_group")
    private String itemGroup;

    /**
     * Area
     */
    @Column("item_area")
    private String itemArea;

    /**
     * Check Item
     */
    @Column("item_check_item")
    private String itemCheckItem;

    /**
     * 备注
     */
    @Column("item_notes")
    private String itemNotes;

    /**
     * 今年是否完成
     */
    @Column("item_isfinished")
    private String itemIsfinished;

    /**
     * 题目版本
     */
    @Column("item_version")
    private String itemVersion;


    public ItemBank() {
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getItemType() {
        return itemType;
    }

    public void setItemType(String itemType) {
        this.itemType = itemType;
    }

    public String getItemFrequency() {
        return itemFrequency;
    }

    public void setItemFrequency(String itemFrequency) {
        this.itemFrequency = itemFrequency;
    }

    public String getItemSite() {
        return itemSite;
    }

    public void setItemSite(String itemSite) {
        this.itemSite = itemSite;
    }

    public String getItemGroup() {
        return itemGroup;
    }

    public void setItemGroup(String itemGroup) {
        this.itemGroup = itemGroup;
    }

    public String getItemArea() {
        return itemArea;
    }

    public void setItemArea(String itemArea) {
        this.itemArea = itemArea;
    }

    public String getItemCheckItem() {
        return itemCheckItem;
    }

    public void setItemCheckItem(String itemCheckItem) {
        this.itemCheckItem = itemCheckItem;
    }

    public String getItemNotes() {
        return itemNotes;
    }

    public void setItemNotes(String itemNotes) {
        this.itemNotes = itemNotes;
    }

    public String getItemIsfinished() {
        return itemIsfinished;
    }

    public void setItemIsfinished(String itemIsfinished) {
        this.itemIsfinished = itemIsfinished;
    }

    public String getItemVersion() {
        return itemVersion;
    }

    public void setItemVersion(String itemVersion) {
        this.itemVersion = itemVersion;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ItemBank itemBank = (ItemBank) o;
        return Objects.equals(code, itemBank.code) && Objects.equals(no, itemBank.no) && Objects.equals(itemType, itemBank.itemType) && Objects.equals(itemFrequency, itemBank.itemFrequency) && Objects.equals(itemSite, itemBank.itemSite) && Objects.equals(itemGroup, itemBank.itemGroup) && Objects.equals(itemArea, itemBank.itemArea) && Objects.equals(itemCheckItem, itemBank.itemCheckItem) && Objects.equals(itemNotes, itemBank.itemNotes) && Objects.equals(itemIsfinished, itemBank.itemIsfinished) && Objects.equals(itemVersion, itemBank.itemVersion);
    }

    @Override
    public int hashCode() {
        return Objects.hash(code, no, itemType, itemFrequency, itemSite, itemGroup, itemArea, itemCheckItem, itemNotes, itemIsfinished, itemVersion);
    }

    @Override
    public String toString() {
        return "ItemBank{" +
                "code='" + code + '\'' +
                ", no='" + no + '\'' +
                ", itemType='" + itemType + '\'' +
                ", itemFrequency='" + itemFrequency + '\'' +
                ", itemSite='" + itemSite + '\'' +
                ", itemGroup='" + itemGroup + '\'' +
                ", itemArea='" + itemArea + '\'' +
                ", itemCheckItem='" + itemCheckItem + '\'' +
                ", itemNotes='" + itemNotes + '\'' +
                ", itemIsfinished='" + itemIsfinished + '\'' +
                ", itemVersion='" + itemVersion + '\'' +
                '}';
    }
}
